<!DOCTYPE html>
<html lang="zh-CN" xmlns:layout="http://www.ultraq.net.nz/web/thymeleaf/layout"
      layout:decorate="~{layout/personalCenterLayout.html}"
      xmlns:th="http://www.thymeleaf.org">


<head lang="en">
</head>
<body>
<!------------------------------idea------------------------------>
<!--<div class="address mt">
	<div class="wrapper clearfix">
		<a href="../index.html" class="fl">首页</a>
		<span>/</span>
		<a href="mygxin.html" class="on">个人信息</a>
	</div>
</div>-->

<!--个人中心     口子开始-->
<div id="personCenterLayout" layout:fragment="personCenterLayout">


    <!------------------------------Bott------------------------------>
    <div class="Bott">
        <div class="wrapper clearfix">
            <div class="you fl">
                <h2>收货地址</h2>


                <div class="add" th:if="${msg!=null}">
                    <span th:text="${msg}"></span>
                </div>


                <div class="add"><!--th:if="${msg==null}"-->
                    <div>
                        <a href="#2" id="addxad"><img src="../img/jia.png"/></a>
                        <span>添加新地址</span>

                    </div>
                    <div th:each="addr :${ useraddrs}">
                        <span id="dizhi">

                               <p th:text="' 收货人：'+${addr.receivingName}">六六六</p>
                                <p>电话：<span th:text="${addr.receivingPhone}">1573****666</span></p>
                                <p>地址：<span th:text="${addr.address}">河北省 唐山市 路北区</span></p>
                                <p>邮编：<span th:text="${addr.zip}">邮编</span></p>

                        </span>
                    </div>
                </div>


            </div>
        </div>
    </div>

    <!--编辑弹框-->
    <!--遮罩-->
    <div class="mask"></div>
    <!--添加-->

    <div class="adddz">
        <form action="/address/addAddress" method="post">
            <input type="hidden" th:name="userId" th:value="${session.user.userId}"/>
            <input type="text" th:value="${session.user.username}" placeholder="姓名" class="on" th:name="receivingName"/>
            <input type="text" placeholder="手机号" th:value="${session.user.userPhone}" th:name="receivingPhone"/>
            <div class="city">


                <label>您选择的地址是：<br/>
                    <!-- 省： <select id="cmbProvince" th:name="province"></select><br/>
                     市：<select id="cmbCity" th:name="city"></select><br/>
                     县： <select id="cmbArea" th:name="country"></select>-->
                    省：<input th:name="province"><br>
                    市：<input th:name="city"><br>
                    县（镇）：<input th:name="country">


                    <!--<input type="text" value="详细地址" onblur="if(this.value=''){this.value='详细地址'}"
                           onfocus="if(this.value='详细地址'){this.value='';}">-->

                </label>


            </div>
            <textarea th:name="detail" rows="" cols="" placeholder="详细地址"></textarea>
            <input type="text" placeholder="邮政编码" th:name="zip"/>
            <div class="bc">
                <input type="submit" value="保存"/>
                <input type="reset" value="取消"/>
            </div>
        </form>
    </div>


    <!--修改-->
    <div class="readd">
        <form action="#" method="post">
            <input type="text" class="on" value="六六六"/>
            <input type="text" value="157****0022"/>
            <div class="city">
                <select name="">
                    <option value="省份/自治区">河北省</option>
                </select>
                <select>
                    <option value="城市/地区">唐山市</option>
                </select>
                <select>
                    <option value="区/县">路北区</option>
                </select>
                <select>
                    <option value="配送区域">火炬路</option>
                </select>
            </div>
            <textarea name="" rows="" cols="" placeholder="详细地址">高新产业园</textarea>
            <input type="text" placeholder="邮政编码" value="063000"/>
            <div class="bc">
                <input type="button" value="保存"/>
                <input type="button" value="取消"/>
            </div>
        </form>
    </div>

</div>


</body>
</html>